<template>
	<view class="u-p-30">
		<u-parse class="" :html="content" style="overflow:hidden;" :tag-style="{ img: 'display: block'}"></u-parse>
	</view>
</template>

<script>
	import { MineCenterApi } from "@/api/serves.js"
	export default {
		data() {
			return {
				content: ''
			}
		},
		onLoad(options) {
			this.getConfig(options.type)
		},
		methods: {
			// 获取配置
			getConfig(type) {
				MineCenterApi.getConfig().then(res => {
				  // console.log('获取配置', res);
					if(res.code == 1){
						this.content = res.data.data[type]
					}else {
						console.log(res);
					}
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
</style>
